package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//COMP_XWPH_TZ 托管中收导入
type COMP_XWPH_TZ struct {
	ID      int       `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	XH      string    `gorm:"column:XH"`
	ZZJGDM  string    `gorm:"column:ZZJGDM"`
	HTBH    string    `gorm:"column:HTBH"`
	KHMC    string    `gorm:"column:KHMC"`
	JYDW    string    `gorm:"column:JYDW"`
	JJBH    string    `gorm:"column:JJBH"`
	SSSXXYH string    `gorm:"column:SSSXXYH"`
	SXSYMC  string    `gorm:"column:SXSYMC"`
	SFSYSX  string    `gorm:"column:SFSYSX"`
	SX      float32   `gorm:"column:SX"`
	RDSX    float32   `gorm:"column:RDSX"`
	SX1000  string    `gorm:"column:SX1000"`
	RDHS    string    `gorm:"column:RDHS"`
	YE      float32   `gorm:"column:YE"`
	YEWY    float32   `gorm:"column:YEWY"`
	DCR     string    `gorm:"column:DCR"`
	SCR     string    `gorm:"column:SCR"`
	BZ      string    `gorm:"column:BZ"`
	XGBHYFL string    `gorm:"column:XGBHYFL"`
	QYGM    string    `gorm:"column:QYGM"`
	KHLX    string    `gorm:"column:KHLX"`
	YWPZ    string    `gorm:"column:YWPZ"`
	YWLX    string    `gorm:"column:YWLX"`
	HTJE    float32   `gorm:"column:HTJE"`
	ZYDBFS  string    `gorm:"column:ZYDBFS"`
	DBRMC   string    `gorm:"column:DBRMC"`
	XDCPZL  string    `gorm:"column:XDCPZL"`
	ZCFKR   time.Time `gorm:"column:ZCFKR"`
	QXR     time.Time `gorm:"column:QXR"`
	DQR     time.Time `gorm:"column:DQR"`
	ZJR     time.Time `gorm:"column:ZJR"`
	DKJE    float32   `gorm:"column:DKJE"`
	JJLLLX  string    `gorm:"column:JJLLLX"`
	JJLXFD  float32   `gorm:"column:JJLXFD"`
	ZXNLL   float32   `gorm:"column:ZXNLL"`
	FSLX    string    `gorm:"column:FSLX"`
	RZJG    string    `gorm:"column:RZJG"`
	JRXTSD  string    `gorm:"column:JRXTSD"`
	GNDJLL  string    `gorm:"column:GNDJLL"`
	LLSX    string    `gorm:"column:LLSX"`
	SZDQ    string    `gorm:"column:SZDQ"`
	ZCDZ    string    `gorm:"column:ZCDZ"`
	YGRS    string    `gorm:"column:YGRS"`
	DKTXHY  string    `gorm:"column:DKTXHY"`
	DKKBH   string    `gorm:"column:DKKBH"`
	JJZZLX  string    `gorm:"column:JJZZLX"`
	QYCZRCF string    `gorm:"column:QYCZRCF"`
	SFGJ    string    `gorm:"column:SFGJ"`
	YYZZ    string    `gorm:"column:YYZZ"`
	SFGXY   string    `gorm:"column:SFGXY"`
	QYGM2   string    `gorm:"column:QYGM2"`
	LCMC    string    `gorm:"column:LCMC"`
	SFYT    string    `gorm:"column:SFYT"`
	DKZH    string    `gorm:"column:DKZH"`
	HKFS    string    `gorm:"column:HKFS"`
	LXZFFS  string    `gorm:"column:LXZFFS"`
}

//TableName 经营单位中收导入表
func (COMP_XWPH_TZ) TableName() string {
	return "T_COMP_XWPH_TZ"
}

//COMP_XWPH_TZAfterImport 导入后执行
// func COMP_XWPH_TZAfterImport(tx *gorm.DB, params map[string]string) (err error) {
// 	tx.Exec("EXEC UP_COMP_XWPH_TZ")
// 	return nil
// }

//COMP_XWPH_TZEF 返回结构体
func COMP_XWPH_TZEF() base.EntityFunc {
	return func() interface{} {
		entity := COMP_XWPH_TZ{}
		return &entity
	}
}

//COMP_XWPH_TZESF 返回结构体数组
func COMP_XWPH_TZESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []COMP_XWPH_TZ
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("COMP_XWPH_TZ", base.NewDefaultDao(COMP_XWPH_TZEF(), COMP_XWPH_TZESF(), nil))
	// base.SetAfterCallBack("COMP_XWPH_TZ", COMP_XWPH_TZAfterImport)
}
